package com.wss.day03.test2;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public abstract class Employee {
    private String name;
    private String id;
    private double pay;

    public Employee(String name, String id, double pay) {
        this.name = name;
        this.id = id;
        this.pay = pay;
    }


    public abstract void addSalary();


    public void show() {
        System.out.println("员工信息：");
        System.out.println("姓名：" + name);
        System.out.println("工号：" + id);
        System.out.println("工资：" + pay);
    }


    public String getName() {
        return name;
    }

    public String getId() {
        return id;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }
}
